package com.android.openapp.data;


import com.android.openapp.R;
import android.view.View;
//import android.widget.ImageView;
import android.widget.TextView;

public class LocationViewCache  {

        private View            baseView;
        private TextView        textViewName;
        private TextView        textViewTipologia;
        //private ImageView       imageViewPhoto;

        public LocationViewCache ( View baseView ) {
                this.baseView = baseView;
        }

        public TextView getTextViewName () {
                if ( textViewName == null ) {
                        textViewName = ( TextView ) baseView.findViewById( R.id.denLocation );
                }
                return textViewName;
        }

        public TextView getTextViewTipologia () {
                if ( textViewTipologia == null ) {
                	textViewTipologia = ( TextView ) baseView.findViewById( R.id.tipLocation );
                }
                return textViewTipologia;
        }
        
        public TextView getTextViewDistance(){
        	return (TextView) baseView.findViewById(R.id.distance);
        }
    /*    public ImageView getImageViewPhoto () {
                if ( imageViewPhoto == null ) {
                        imageViewPhoto = ( ImageView ) baseView.findViewById( R.id.personImage );
                }
                return imageViewPhoto;
        }*/

}